package com.dalong.springboot.dao;


import com.dalong.springboot.bean.XwlPermission;
import com.dalong.springboot.bean.XwlRole;
import com.dalong.springboot.bean.XwlUser;
import com.dalong.springboot.bean.XwlUserExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface XwlUserMapper {
    long countByExample(XwlUserExample example);

    int deleteByExample(XwlUserExample example);

    int deleteByPrimaryKey(Integer userId);

    int insert(XwlUser record);

    int insertSelective(XwlUser record);

    List<XwlUser> selectByExample(XwlUserExample example);

    List<XwlRole> selectRoleByUserId(Integer id);

    List<XwlPermission> selectPermissionByRoleId(Integer id);

    XwlUser selectByPrimaryKey(Integer userId);

    int updateByExampleSelective(@Param("record") XwlUser record, @Param("example") XwlUserExample example);

    int updateByExample(@Param("record") XwlUser record, @Param("example") XwlUserExample example);

    int updateByPrimaryKeySelective(XwlUser record);

    int updateByPrimaryKey(XwlUser record);
}